package main

import (
	mredis "gitee.com/masaichi/mastool/masredis"
	"log"
)

func main() {
	redis := mredis.NewMRedis()
	redis.SetConn("", 0, "", 2, 15, 10)
	log.Printf("cache:%s", redis.GetCache("test111"))
	//redis.Lock("lock")
	redis.Unlock("lock")
	log.Println(redis.Lock("lock"))
	//redis.SetCache("test111", "22", 1*time.Second)
	log.Printf("cache:%s", redis.GetCache("test111"))
}
